package com.duck.communication.service;

import com.duck.communication.domain.vo.ExpertInfoVo;

import java.util.HashMap;
import java.util.List;

public interface QuestionService {
    Integer DirectedQuestion(HashMap<String,Object> question);

    Integer PublicQuestion(HashMap<String,Object> question);

    List<HashMap<String,Object>> searchMyQuestion(String userId);

    List<HashMap<String,Object>> searchAllQuestions();

    List<HashMap<String,Object>> searchDirectedQuestion(String userId);

    Integer answerQuestion(HashMap<String,Object> answer);

    List<HashMap<String,Object>>searchExpertAnsweredQuestion(String userId);

    List<HashMap<String,Object>>searchDirectedUnAnswer(String userId);

    List<HashMap<String,Object>> searchAllAnsweredQuestion();

    ExpertInfoVo searchExpertAnswerNumberAndAcceptedNumber(String userId);

    Integer addAcceptedAnswer(Integer answerId);

    Integer updateIsAnswer(Integer postId);

    List<HashMap<String,Object>> searchQuestion(String questionId);

    List<HashMap<String,Object>> searchUnAnsweredQuestion();

    List<HashMap<String,Object>> searchAllPublicQuestion();

    List<HashMap<String,Object>> searchAllPublicAnsweredQuestion();

    List<HashMap<String,Object>> searchAllPublicUnAnsweredQuestion();
}
